<?php

// use maoxuner\LaravelJsonRpc\Server\Parser;

return [
    'namespace' => 'App\\Actions',
    'delimiter' => '.',

    // fn ($request) => app(Parser::class)->parse($request->getContent())
    // 'extractor' => [SomeClass::class, 'someMethod'],

    // fn ($responseObject) => $responseObject ? response()->json($responseObject) : response()->make()
    // 'compactor' => [SomeClass::class, 'someMethod'],

    'exception' => [
        'mapping' => [
            Illuminate\Auth\AuthenticationException::class => maoxuner\LaravelJsonRpc\Exceptions\RequestException::class,
            TypeError::class => maoxuner\LaravelJsonRpc\Exceptions\ParamsException::class,
        ],
        'ignores' => [],
    ],

    'procedure' => [],
];
